﻿@model GameCode.Models.Admin.GameCodeListModel
@{
    ViewBag.Title = "游戏特权 - 已用特权码";
    Model.Caption = "已用特权码";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}
@using (Html.BeginForm(new { act = "submit" }))
{
    @Html.HiddenFor(m=>m.ID)
    <div class="ui-body ui-body-a">
        <div data-role="fieldcontain">
            @Html.LabelFor(m => m.GameName)
            @Html.DisplayFor(m => m.GameName, new Dict() { "data-mini:true" })
        </div>
        <div data-role="fieldcontain">
            @Html.LabelFor(m => m.ProjectName)
            @Html.DisplayFor(m => m.ProjectName, new Dict() { "data-mini:true" })
        </div>
        <div data-role="fieldcontain">
            @Html.LabelFor(m => m.Count)
            @Html.DisplayFor(m => m.Count, new Dict() { "data-mini:true" })
        </div>
        <div>
            <input type="submit" value="导出Excel" data-inline="true" data-mini="true"/>
        </div>
     </div>
    
       var grid = new WebGrid(source: Model.List, rowsPerPage: 30);
    @grid.GetHtml(
        htmlAttributes: new { cellpadding = "0", cellspacing = "0" },
        headerStyle: "ui-li ui-li-divider ui-btn ui-bar-a ui-btn-hover-undefined ui-btn-up-undefined",
    columns: grid.Columns
        (
            grid.Column("Code1", "特权号"),
            grid.Column("FetchDate", "领取时间"),
            grid.Column("DeviceType", "设备类型"),
            grid.Column("UUID", "设备号")
        )
    )
}